import { createSSRApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import { createUnistorage } from 'pinia-plugin-unistorage'
export function createApp() {
  const app = createSSRApp(App) // ssr服务端渲染！！！ csr 客户端渲染
  const pinia = createPinia()
  pinia.use(createUnistorage()) // 注册持久化
  app.use(pinia) // 注册pinia
  return {
    app,
  }
}
